//路由表：用户管理

const router = [
  {
    path: 'userManage',
    name: 'UserManage',
    meta: { title: '用户管理', icon: 'svg-user-manage', alwaysShow: true },
    children: [
      {
        path: 'allUser',
        component: 'systemManage/userManage/allUser/index',
        meta: { title: '全部用户' },
        name: 'AllUser'
      },
      {
        path: 'onTheUser',
        component: 'systemManage/userManage/onTheUser/index',
        meta: { title: '在岗用户' },
        name: 'OnTheUser'
      },
      {
        path: 'specialCrowdSign',
        component: 'systemManage/userManage/specialCrowdSign/index',
        meta: { title: '特殊人群标记' },
        name: 'SpecialCrowdSign'
      },
      {
        path: 'specialCrowdSign/detail/:id/:title?',
        component: 'systemManage/userManage/specialCrowdSign/detail',
        meta: {
          title: '特殊人群标记详情',
          hidden: true,
          pageHeader: false,
          activeMenu: '/systemManage/userManage/specialCrowdSign',
          dynamicTitle(to) {
            const { title } = to.params
            return `特殊人群${title}详情`
          },
          usePathKey: true
        }
      }
    ]
  }
]

export default router
